

//
//  CollectionFirstHeadView.m
//  面包旅行
//
//  Created by Sunpeng on 15/11/4.
//  Copyright © 2015年 Sunpeng. All rights reserved.
//

#import "CollectionFirstHeadView.h"

@implementation CollectionFirstHeadView
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    
    if (self) {
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(8*XWIDTH, 10*XHIGHT, 60*XWIDTH, 25*XHIGHT)];
        //self.label.backgroundColor = [UIColor blueColor];
        self.label.font = [UIFont systemFontOfSize:15*XHIGHT];
        [self addSubview:self.label];
        
        self.button = [UIButton buttonWithType:UIButtonTypeCustom];
        [self.button setTitleColor:[UIColor colorWithRed:0.395 green:0.398 blue:0.400 alpha:1.000] forState:UIControlStateNormal];
       self.button.titleLabel.font = [UIFont systemFontOfSize:13*XHIGHT];
        self.button.titleLabel.textColor = [UIColor grayColor];
        
        [self addSubview:self.button];
        
        self.leftImage = [[UIView alloc] initWithFrame:CGRectMake(8*XWIDTH, 10*XHIGHT, 8*XWIDTH, 18*XHIGHT)];
        self.leftImage.layer.masksToBounds = YES;
        self.leftImage.layer.cornerRadius = 2.0;
        self.leftImage.backgroundColor = [UIColor colorWithRed:0.29 green:0.74 blue:0.79 alpha:1];
        [self addSubview:self.leftImage];
  
        
    }
    
    return self;
    
    
}

@end
